
#ifndef MOVEDIRECTION_H
#define MOVEDIRECTION_H


//#include "gameobject.h"
#include <QGraphicsPixmapItem>


class MoveDirection : public QGraphicsPixmapItem{
public:
    //方向键类型
    enum MoveDirectionType
    {
        DI_up,
        DI_left,
        DI_right,
        DI_down
    };
    explicit MoveDirection(QObject *parent = nullptr);
    MoveDirection(QPoint _pos,QPixmap _pixmap,int _type);

    //移动函数
    void DMove(QPoint _dir = QPoint(0,-1));

    int MoveDirectionType;
    int Speed;//子弹移速



};



#endif // MOVEDIRECTION_H
